package com.xjiye_test.payServer.serverletUtil;


/**
 * 支付常量
 */
public class PayConstants {
    //protected static final ResourceBundle PayResource = ResourceBundle.getBundle(".platform-pay");
    /**支付回调地址 */
    //public static final String PAY_NOTITY_URL = PayResource.getString("notify_path");
    /** 平台支付的密钥 */
    public static final String PAY_PRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAIuXGMG+sa6mfiO6adnUXjKP78yw1UfEtrHox2x0VJ2vBay27qDYCnos17w+PNU/LRIUEe7jUVtyoQ7nzOisF6fSqUe5HBzMVan497wF4Fmj7Tm8C6yfJAFc4Kme75OCPl6zcV+g6rK9P4SDeFaz6zAwENBeZRYGicBgfVip/lX/AgMBAAECgYBDZ3y+4XQvH5o9amB+nPu3cqWas7DpbOXDVuIlTq8lTURyOAtWg7vbbxflgDAj0NPUrPhT4FSC0gFPj0L0/1SUMKJunsfvKkj0BH8AdP0I27V6oAmqTanYutOLGuv02wGx08vFoYjmMd5wehxNs7JuUfvXiHrTXEiV1gTrvlRg4QJBAL+XuR8rV+uqkBLShBObyde+zgUxZ3d61Vw1uJY0SHFNDVyLXwEQOduqyFTvoGHaIq2ivu6A/zLAJiVK0XqJC5cCQQC6hBgUmuQ26uR2261n5KNFZDq2SLSBDGka7IxAYPOcasyHwyAMs4gVTNEUoAs2MGx15/bmpEv3XZMPHqVhpPXZAkBy1czGiuMixNOgBH/XhOvhHWM8p5T9fyk9IJHnraSyDF3y1zJ1X7VeHan/hrUZkXZxnndUWwsa7yKt/X87M8M3AkBu1gp9TCIr5GAJpbehUoQXu10Mb54cReS7pDAgHb0GiYyrbK/B/Hn0tmZUzFp9RD9fvY3CN4YRJGE8jeiXYvDZAkEAj1Q6FrmkZd7KrY9HKlUq/8n7mvGv+j9BhmkPICxlc0iHQWo+YNUwcggkPhXO5t9cPQr+fERd9xfFPPLGQ7+Fqg==";
    /**  平台支付的公钥 */
    public static final String PAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCLlxjBvrGupn4jumnZ1F4yj+/MsNVHxLax6MdsdFSdrwWstu6g2Ap6LNe8PjzVPy0SFBHu41FbcqEO58zorBen0qlHuRwczFWp+Pe8BeBZo+05vAusnyQBXOCpnu+Tgj5es3FfoOqyvT+Eg3hWs+swMBDQXmUWBonAYH1Yqf5V/wIDAQAB";


    public static final String SIGN_TYPE                      = "sign_type";

    public static final String SIGN_TYPE_RSA                  = "RSA";

    /**
     * sha256WithRsa 算法请求类型
     */
    public static final String SIGN_TYPE_RSA2                 = "RSA2";

    public static final String SIGN_ALGORITHMS                = "SHA1WithRSA";

    public static final String SIGN_SHA256RSA_ALGORITHMS      = "SHA256WithRSA";

    public static final String ENCRYPT_TYPE_AES               = "AES";

    public static final String APP_ID                         = "app_id";

    public static final String FORMAT                         = "format";

    public static final String METHOD                         = "method";

    public static final String TIMESTAMP                      = "timestamp";

    public static final String VERSION                        = "version";

    public static final String SIGN                           = "sign";

    public static final String ALIPAY_SDK                     = "alipay_sdk";

    public static final String ACCESS_TOKEN                   = "auth_token";

    public static final String APP_AUTH_TOKEN                 = "app_auth_token";

    public static final String TERMINAL_TYPE                  = "terminal_type";

    public static final String TERMINAL_INFO                  = "terminal_info";

    public static final String CHARSET                        = "charset";

    public static final String NOTIFY_URL                     = "notify_url";

    public static final String RETURN_URL                     = "return_url";

    public static final String ENCRYPT_TYPE                   = "encrypt_type";

    public static final String BIZ_CONTENT_KEY                = "biz_content";

    /** 默认时间格式 **/
    public static final String DATE_TIME_FORMAT               = "yyyy-MM-dd HH:mm:ss";

    /**  Date默认时区 **/
    public static final String DATE_TIMEZONE                  = "GMT+8";

    /** UTF-8字符集 **/
    public static final String CHARSET_UTF8                   = "UTF-8";

    /** GBK字符集 **/
    public static final String CHARSET_GBK                    = "GBK";

    /** JSON 应格式 */
    public static final String FORMAT_JSON                    = "json";

    /** XML 应格式 */
    public static final String FORMAT_XML                     = "xml";

    /** SDK版本号 */
    public static final String SDK_VERSION                    = "alipay-sdk-java-dynamicVersionNo";

    public static final String PROD_CODE                      = "prod_code";

    /** 老版本失败节点 */
    public static final String ERROR_RESPONSE                 = "error_response";

    /** 新版本节点后缀 */
    public static final String RESPONSE_SUFFIX                = "_response";

    /** 加密后XML返回报文的节点名字 */
    public static final String RESPONSE_XML_ENCRYPT_NODE_NAME = "response_encrypted";
    /** 支付成功 */
    public static final String PAY_SUCCESS = "SUCCESS";
    /** 支付失败 */
    public static final String PAY_FAIL = "FAIL";

    /**
     * 异常码
     */
    /** 参数错误 */
    public static final String EXC_PARAM = "401";
    /** 网络请求异常 */
    public static final String EXC_HTTP = "402";

}